{include file="pub:header" /}
</head>
<body>


<div class="subnav">
    <h1 class="title_2 line_x">修改账号信息</h1>
</div>

<div class="pad_lr_10" >
    <form action="{:url('admin/info')}" class="edituser" method="post" id="form1">
    <table width="100%" cellspacing="0" class="table_form">
        <tbody>
			<tr>
                <th width="150">账号：</th>
				<td><strong>{$info['account']}</strong></td>
            </tr>
			<tr>
                <th width="150">登录次数：</th>
				<td><strong>{$info['logincount']} 次</strong></td>
            </tr>
			<tr>
                <th width="150">本次登录：</th>
                <td><strong>{$info['lastlogintime']|date="Y-m-d H:i:s"} | {$info['lastloginip']}</strong></td>
            </tr>
            <?php if($lastlogin){ ?>
			<tr>
                <th width="150">上次登录：</th>
				<td><strong>{$lastlogin}</strong></td>
            </tr>
            <?php } ?>
            <tr>
                <th>姓名：</th>
                <td>
                    <input name="realname" type="text" value="{$info['realname']}" class="input-text" size="30">
                </td>
            </tr>

			<tr>
				<th>原密码：</th>
				<td>
					<input name="pwd" type="password" class="input-text" size="30">
                    <span class="gray ml10">留空密码不修改</span>
				</td>
			</tr>
			<tr>
				<th>新密码：</th>
				<td>
					<input name="newpwd" type="password" class="input-text" size="30">
                    <span class="gray ml10">3-20个字符内</span>
				</td>
			</tr>
			<tr>
				<th>确认密码：</th>
				<td><input name="repwd" type="password" class="input-text" size="30"></td>
			</tr>

			<tr>
				<th width="120">&nbsp;</th>
                <td valign="bottom">
					<input class="smt mr10" type="button" onclick="ajaxpost('form1');" value="修改" />
				</td>
			</tr>

        </tbody>
    </table>
    </form>
</div>

{include file="pub:footer" /}
